package sfms.model;

import java.util.*;

public class Facility {

    public Facility() {
    }

    public Facility(int id, String title, Date notActive, License license) {
        this.id = id;
        this.title = title;
        this.notActive = notActive;
        this.license = license;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Date getNotActive() {
        return notActive;
    }

    public void setNotActive(Date notActive) {
        this.notActive = notActive;
    }

    public License getLicense() {
        return license;
    }

    public void setLicense(License license) {
        this.license = license;
    }
    
    public String getData() {
        return id + ", " + title + ", " + notActive.toString() + ", " + license.getData();
    }
    
    @Override
    public String toString() {
        return title;
    }

    private int id;
    private String title;
    private Date notActive;
    private License license;
}
